package com.rahwi.rahwi_server.Entity;

import javax.persistence.*;
import java.io.Serializable;

@Table(name = "replyreport")
@Entity
public class ReplyReport implements Serializable{
    @Override
    public String toString() {
        return "ReplyReport{" +
                "Id=" + Id +
                ", Uid=" + Uid +
                ", Rid=" + Rid +
                ", Reason='" + Reason + '\'' +
                ", status='" + status + '\'' +
                '}';
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private int Id;

    @Column(name = "uid")
    private int Uid;

    @Column(name = "rid")
    private int Rid;

    @Column(name = "reason")
    private String Reason;

    @Column(name = "status")
    private String status;

    @ManyToOne(targetEntity = Reply.class)
    @JoinColumn(name = "rid",referencedColumnName = "rid",insertable = false, updatable = false)
    private Reply reply;

    public Reply getReply() {
        return reply;
    }

    public void setReply(Reply reply) {
        this.reply = reply;
    }

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public int getUid() {
        return Uid;
    }

    public void setUid(int uid) {
        Uid = uid;
    }

    public int getRid() {
        return Rid;
    }

    public void setRid(int rid) {
        Rid = rid;
    }

    public String getReason() {
        return Reason;
    }

    public void setReason(String reason) {
        Reason = reason;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
